<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ page isELIgnored='false' %> 
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
	
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link href="conversation.css" rel="STYLESHEET" type="text/css">
<title>Dataset List</title>
</head>
<body>
<!--        Header         -->
<jsp:include page="scripts/headerAnnotate.jsp" >
    <jsp:param name="title" value="Dataset List" />
</jsp:include>
<!--        List           -->
<p align="center">
<div class="list">
<table>
  <tr>
    <th>Dataset Id</th>
    <th>Name</th>
    <th>Descripation</th>
    <td>
    </td>						
  </tr>
  <c:forEach items="${datasets}" var="dataset">
  <tr>
    <td>
      <a href='assignmentlist.html?datasetId=<c:out value="${dataset.datasetId}"/>'>
        <c:out value="${dataset.datasetId}" /> 
	  </a>
    </td>
		<td><c:out value="${dataset.name}" /></td>
	<td><c:out value="${dataset.description}" /></td>
	<td>
      <a href='assignmentlist.html?datasetId=<c:out value="${dataset.datasetId}"/>'>
        [assignments]
	  </a>
   	<c:if test="${anno_user.role == 1}">
    <a href='conversationlist.html?datasetId=<c:out value="${dataset.datasetId}"/>'>
        [conversations]
	  </a>	
	  </c:if>
	</td>
  </tr>
  </c:forEach>
</table>
</div>
</body>
</html>
